package com.bnuz.vtl.model;

import lombok.Data;
import org.neo4j.ogm.annotation.GeneratedValue;
import org.neo4j.ogm.annotation.Id;
import org.neo4j.ogm.annotation.NodeEntity;
import org.neo4j.ogm.annotation.Relationship;
import org.neo4j.ogm.id.UuidStrategy;

import java.util.List;


@Data
@NodeEntity
public class Subject {

    @Id
    private String subjectId;

    private String subjectName;

    @Relationship(value = "CHILD", direction = "INCOMING")
    private List<Subject> children;

    @Relationship(value = "CHILD", direction = "INCOMING")
    private PublicNode publicNode;

}
